package com.yjk.example;

import com.yjk.example.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p> </p>
 *
 * <pre> Created: 2018/11/15 19:01 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
@RestController
public class UserController {
    @Autowired
    private IUserService userService;

    @GetMapping("/select1")
    public String select1(){
        return userService.select1();
    }

    @GetMapping("/select2")
    public String select2(){
        return userService.select2();
    }
}
